<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Reports extends Admin_Controller
{
    function __construct ()
    {
        parent::__construct();
        $this->load->model('report_m');
        $this->url = $this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3).'/';       
    }

    public function finances($type=0)
    {
    	$data['types'] = array('今日' => 0,'本月' => 1,'本年' => 2,'全部' => 3 );
    	$data['type'] = $type;
    	$data['thisurl'] = $this->url;
    	$this->load->view('report/goods', $data);
    }

    public function goods($type=0)
    {
    	$data['types'] = array('今日' => 0,'本月' => 1,'本年' => 2,'全部' => 3 );
    	$data['type'] = $type;
    	$data['thisurl'] = $this->url;
    	$this->load->view('report/goods', $data);
    }

    public function orders($type=0)
    {
    	$data['types'] = array('今日' => 0,'本月' => 1,'本年' => 2,'全部' => 3 );
    	$data['type'] = $type;
    	$data['thisurl'] = $this->url;
    	$this->load->view('report/goods', $data);
    }

    public function pickers($type=0)
    {
    	$data['types'] = array('今日' => 0,'本月' => 1,'本年' => 2,'全部' => 3 );
    	$data['type'] = $type;
    	$data['thisurl'] = $this->url;
    	$this->load->view('report/goods', $data);
    }

    public function recharges($type=0)
    {
    	$data['types'] = array('今日' => 0,'本月' => 1,'本年' => 2,'全部' => 3 );
    	$data['type'] = $type;
    	$data['thisurl'] = $this->url;
    	$this->load->view('report/goods', $data);
    }

}